package com.work.demo.kfc;

/**
 * @ClassName : Client
 * @Description : 客户(建造者模式)
 * @Author : LinYa
 * @Date: 2021/11/5  14:32
 */
public class Client {
	public static void main(String[] args) {
		MealBuilder mb = new SubMealBuilderB();

		KFCWaiter kfcWaiter = new KFCWaiter();

		kfcWaiter.setMb(mb);

		Meal construct = kfcWaiter.construct();
		System.out.println(String.format("套餐为:%s,%s", construct.getFood(), construct.getDrink()));
	}
}
